package class_load;

/**
 * @program: baseModule
 * @description:
 * @author: zhanghz001
 * @create: 2020-10-23 11:26
 **/
public class Student {
    public int publicV;
    protected int protectedV;
    int voidV;
    private int age;
    private String name;

    Student() {
    }

    private Student(int age) {
        this.age = age;
    }

    public Student(int age, String name) {
        this.age = age;
        this.name = name;
    }

    String getName1() {
        return name;
    }

    private String getPrivateName() {
        return name;
    }

    protected String getProtectedName() {
        return name;
    }

    public String getName() {
        return name;
    }

    void setName1(String name) {
        this.name = name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "publicV=" + publicV +
                ", protectedV=" + protectedV +
                ", voidV=" + voidV +
                ", age=" + age +
                ", name='" + name + '\'' +
                '}';
    }

}
